package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.platform.dao.InterceptKeywordsDao;
import com.platform.entity.InterceptKeywordsEntity;
import com.platform.service.InterceptKeywordsService;

/**
 * Service实现类
 *
 * @author czj
 * @email 729618941@qq.com
 * @date 2018-10-19 16:58:07
 */
@Service("interceptKeywordsService")
public class InterceptKeywordsServiceImpl implements InterceptKeywordsService {
    @Autowired
    private InterceptKeywordsDao interceptKeywordsDao;

    @Override
    public InterceptKeywordsEntity queryObject(Integer id) {
        return interceptKeywordsDao.queryObject(id);
    }

    @Override
    public List<InterceptKeywordsEntity> queryList(Map<String, Object> map) {
        return interceptKeywordsDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return interceptKeywordsDao.queryTotal(map);
    }

    @Override
    public int save(InterceptKeywordsEntity interceptKeywords) {
        interceptKeywords.setAddTime(new Date());
        return interceptKeywordsDao.save(interceptKeywords);
    }

    @Override
    public int update(InterceptKeywordsEntity interceptKeywords) {
        return interceptKeywordsDao.update(interceptKeywords);
    }

    @Override
    public int delete(Integer id) {
        return interceptKeywordsDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return interceptKeywordsDao.deleteBatch(ids);
    }
}
